package com.ctsi.security.event;


import com.ctsi.commons.event.AbstractObserver;
import com.ctsi.commons.event.BaseEvent;
import com.ctsi.security.domain.UserDataObject;
import com.ctsi.security.manager.impl.SecurityImpl;

public class RemoveUserResIds extends AbstractObserver {
    /**
	 * 
	 */
	private static final long serialVersionUID = -5191405435530476352L;

	@Override
	public void onEvent(Object[] args) {
		BaseEvent event= (BaseEvent) args[0];
		UserDataObject userDataObject=(UserDataObject) event.getSource();
		//清除该用户的数据权限（资源ID）
		SecurityImpl.removeUserResIDCache(userDataObject.getUserId());
	}
	
	

}
